import java.util.Scanner;

public class homework42 {
    public static void main(String[] args) {
        boolean a =  reasult(0);
        System.out.println(a);
    }

    public static boolean reasult(int i){
        if(i > 9){
            return false;
        }
        int z = i;
        int y = 3-z;
        int x = 5-y;
        if(z+z==2 && y+z==3 && y+x==5){
            System.out.println("x=" + x +" "+ "y=" +y +" "+ "z=" +z);
            int a = (x*100+y*10+z)+(y*100+z*10+z);//求和
            System.out.println(x+""+""+y+""+z+"+"+y+""+z+""+z+"="+a);
            return true;
        }else{
            i++;
            return  reasult(i);
        }
    }
}